home *** CD-ROM | disk | FTP | other *** search
/ TeX 1995 July / TeX CD-ROM July 1995 (Disc 1)(Walnut Creek)(1995).ISO / dviware / umddvi / makefile.3b < prev    next >
Makefile  |  1990-10-01  |  1KB  |  55 lines

  1. # Makefile for everything
  2. #
  3. # Eventually, it would be nice to have various targets depending on
  4. # the output devices, and pass that info down to the dev/ directory.
  5. # For now, this will do.
  6. DESTDIR=
  7. MAKE=    make
  8. MFLAGS=
  9.  
  10. # where to find the font description file
  11. CONFFILE=/usr/lib/tex/fonts
  12. # where things get installed
  13. BINDIR=    ${DESTDIR}/usr/local/bin
  14. # where manuals get installed---note that `/man1' is tacked on
  15. # for section 1 manuals, etc
  16. MANDIR=    ${DESTDIR}/usr/man
  17.  
  18. # The subdirectories.  N.B.: "lib" must appear first!
  19. SUBDIR=    lib dev dvi
  20.  
  21. OPTS=    MFLAGS="${MFLAGS}" BINDIR=${BINDIR} MANDIR=${MANDIR} \
  22.     CONFFILE=${CONFFILE} DESTDIR=${DESTDIR} CC=${CC} ${MFLAGS}
  23.  
  24. all:
  25.     for i in ${SUBDIR}; do (cd $$i; ${MAKE} ${OPTS}); done
  26.  
  27. install clean depend:
  28.     for i in ${SUBDIR}; do (cd $$i; ${MAKE} ${OPTS} $@); done
  29.  
  30. # this one is special
  31. conf:
  32.     cd dev; ${MAKE} conf
  33.  
  34. # make the distribution directory -- assumes no RCS files in top level
  35. # `doc' is not yet ready
  36. dist:
  37.     rm -rf ../ctex_dist
  38.     -mkdir ../ctex_dist
  39.     -set -x +e; \
  40.      for i in *; do \
  41.         if [ $$i != ctex ]; then \
  42.             if [ -d $$i ]; then \
  43.                 cp -r $$i ../ctex_dist; \
  44.                 (cd ../ctex_dist/$$i; rm -rf RCS); \
  45.             else \
  46.                 cp $$i ../ctex_dist; \
  47.             fi; \
  48.         fi; \
  49.      done
  50.     -cd ../ctex_dist; \
  51.      echo '/CONFFILE=/s,local/,,!/MANDIR=    /s,local/,,!w!q' | \
  52.      tr ! '\012' | ed Makefile
  53.     -cd ../ctex_dist; make clean
  54.     -cd ../ctex_dist/dev; make dist
  55.